package com.eastcom.bm.atom;

import java.io.Serializable;

public class ReportMappingPK implements Serializable{

	private String taskid;
	private String hostIp;
	
	
	public String getTaskid() {
		return taskid;
	}
	public void setTaskid(String taskid) {
		this.taskid = taskid;
	}
	public String getHostIp() {
		return hostIp;
	}
	public void setHostIp(String hostIp) {
		this.hostIp = hostIp;
	}
	
	@Override
	public int hashCode()
	{
		return this.taskid.hashCode()+this.hostIp.hashCode();
	}
	
	@Override
	public boolean equals(Object o)
	{
		if(o==null)
			return false;
		if(!(o instanceof ReportMappingPK))
			return false;
		ReportMappingPK pk=(ReportMappingPK)o;
		if(pk.getTaskid().equals(this.taskid)&&pk.getHostIp().equals(this.hostIp)){
			return true;
		}else{
			return false;
		}
	}
}
